package cn.signalpha.modules.shop.mapper;

import cn.signalpha.modules.shop.entity.GoodsSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 商品sku Mapper 接口
 *
 * @author suguangjun
 */
public interface GoodsSkuMapper extends BaseMapper<GoodsSku> {

	int subtractStocks(@Param("skuId") Long skuId, @Param("stock") Integer stock);

	int returnStock(@Param("goodsSkuCollect") Map<Long, Integer> goodsSkuCollect);

}
